home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.8 / am / lisp.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  4.2 KB  |  132 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  3. ## Free Software Foundation, Inc.
  4.  
  5. ## This program is free software; you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation; either version 2, or (at your option)
  8. ## any later version.
  9.  
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ## GNU General Public License for more details.
  14.  
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  18. ## 02111-1307, USA.
  19.  
  20.  
  21. ## ---------- ##
  22. ## Building.  ##
  23. ## ---------- ##
  24.  
  25. elc-stamp: $(am__ELFILES)
  26.     @echo 'WARNING: Warnings can be ignored. :-)'
  27.     @rm -f elc-temp && touch elc-temp
  28.     if test "$(EMACS)" != no; then \
  29. ## Make sure "$@" isn't empty initially.
  30.       set x; \
  31. ## Populate "$@" with elisp files (found in the current directory
  32. ## or in $srcdir).
  33.       list='$(am__ELFILES)'; for p in $$list; do \
  34.         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  35.         set x "$$@" "$$d$$p"; shift; \
  36.       done; \
  37. ## Finally call elisp-comp for all files.
  38.       shift; \
  39.       EMACS="$(EMACS)" $(SHELL) $(elisp_comp) "$$@" || exit 1; \
  40.     else : ; fi
  41.     @mv -f elc-temp $@
  42.  
  43. ## Do not use $(ELCFILES) as target, because it may have been emptied
  44. ## by the user (to disable byte-compilation), and POSIX does not allow
  45. ## an empty target.
  46. $(am__ELCFILES): elc-stamp
  47. ## Recover from the removal of $@
  48.     @if test ! -f $@; then \
  49.       rm -f elc-stamp; \
  50.       $(MAKE) $(AM_MAKEFLAGS) elc-stamp; \
  51.     else : ; fi
  52.  
  53.  
  54. ## ------------ ##
  55. ## Installing.  ##
  56. ## ------------ ##
  57.  
  58. if %?INSTALL%
  59. am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
  60. ?BASE?%DIR%LISP_INSTALL = $(INSTALL_DATA)
  61. ?!BASE?%DIR%LISP_INSTALL = $(install_sh_DATA)
  62. ?EXEC?.PHONY install-exec-am: install-%DIR%LISP
  63. ?!EXEC?.PHONY install-data-am: install-%DIR%LISP
  64. install-%DIR%LISP: $(%DIR%_LISP) $(ELCFILES)
  65.     @$(NORMAL_INSTALL)
  66. ## Do not install anything if EMACS was not found.
  67.     @if test "$(EMACS)" != no; then \
  68.       test -z "$(%NDIR%dir)" || $(mkdir_p) "$(DESTDIR)$(%NDIR%dir)"; \
  69. ?!BASE?      srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  70. ## Funny invocation because Makefile variable can be empty, leading to
  71. ## a syntax error in sh.
  72.       list='$(%DIR%_LISP)'; for p in $$list; do \
  73. ## A lisp file can be in the source directory or the build directory.
  74.         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  75. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  76. ?!BASE?        case $$p in \
  77. ?!BASE?          $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  78. ?!BASE?          *) f=$$p;; \
  79. ?!BASE?        esac; \
  80.         echo " $(%DIR%LISP_INSTALL) '$$d$$p' '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
  81.         $(%DIR%LISP_INSTALL) "$$d$$p" "$(DESTDIR)$(%NDIR%dir)/$$f"; \
  82. ## Only install .elc file if it exists.
  83.         if test -f $${p}c; then \
  84.           echo " $(%DIR%LISP_INSTALL) '$${p}c' '$(DESTDIR)$(%NDIR%dir)/$${f}c'"; \
  85.           $(%DIR%LISP_INSTALL) "$${p}c" "$(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  86.         else : ; fi; \
  87.       done; \
  88.     else : ; fi
  89. endif %?INSTALL%
  90.  
  91.  
  92. ## -------------- ##
  93. ## Uninstalling.  ##
  94. ## -------------- ##
  95.  
  96. if %?INSTALL%
  97. .PHONY uninstall-am: uninstall-%DIR%LISP
  98. uninstall-%DIR%LISP:
  99.     @$(NORMAL_UNINSTALL)
  100. ## Do not uninstall anything if EMACS was not found.
  101.     @if test "$(EMACS)" != no; then \
  102. ?!BASE?      srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  103.       list='$(%DIR%_LISP)'; for p in $$list; do \
  104. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  105. ?!BASE?        case $$p in \
  106. ?!BASE?          $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  107. ?!BASE?          *) f=$$p;; \
  108. ?!BASE?        esac; \
  109.         echo " rm -f '$(DESTDIR)$(%NDIR%dir)/$$f' '$(DESTDIR)$(%NDIR%dir)/$${f}c'"; \
  110.         rm -f "$(DESTDIR)$(%NDIR%dir)/$$f" "$(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  111.       done; \
  112.     else : ; fi
  113. endif %?INSTALL%
  114.  
  115.  
  116. ## ---------- ##
  117. ## Cleaning.  ##
  118. ## ---------- ##
  119.  
  120. .PHONY clean-am: clean-lisp
  121. clean-lisp:
  122.     -rm -f elc-stamp $(ELCFILES)
  123.  
  124.  
  125. ## -------------- ##
  126. ## Distributing.  ##
  127. ## -------------- ##
  128.  
  129. if %?DIST%
  130. DIST_COMMON += %DISTVAR%
  131. endif %?DIST%
  132.